package com.study.modules.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.study.modules.sys.model.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author Mr.Du
 * @Date 2021/10/16 8:56
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    IPage<SysRole> queryRoleList(Page<SysRole> page);

    SysRole selectRoleById(@Param("id") Long id);

    Integer deleteRoleById(@Param("id") Long id);

}
